const { Comment } = require('../../model/comment')
module.exports = async(req, res) => {
    const { aid, uid, content } = req.body;
    await Comment.create({
        aid: aid,
        uid: uid,
        time: new Date(),
        content: content
    })
    res.redirect('/home/article?id=' + aid)

}